calendar object
This method will add a number of seconds to the second property.
bool add_seconds(int seconds)
Parameters:
seconds
The number of seconds to add.
Return value:
true on success, false on failure.
Remarks:
A negative value in the seconds parameter will subtract seconds from the current second.
Any number of seconds can be added or subtracted. The rest of the time will adjust accordingly.
Example:
// Create a calendar and set it to October 7, 1767 at 09:00 and add 86400 seconds.
void main()
{
calendar test;
test.set(1767, 10, 7, 9, 0, 0);
test.add_seconds(86400);
alert("Date", "The date is "+test.weekday_name+", "+test.month_name+" "+test.day+", "+test.year+", at "+test.hour+":"+test.minute+":"+test.second);
}